__author__ = 'East'

# 三元运算
a, b, c = 1, 3, 5

d = a if a > b else c      # 如果 a > b 则是 a  否则 是 c
print(d)

# byte 和 string 的转换
print('sds320'.encode('UTF-8'))
print(b'sds320'.decode('UTF-8'))

msg = '我爱北京天安门'
print(msg)
print(msg.encode(encoding='UTF-8'))
print(msg.encode(encoding='UTF-8').decode(encoding='UTF-8'))